import request from '@/request/index.js'
import { C2B  } from '../utils/wordtransfer'


/**
 * 查询基础项列表并分页
 */
export const page = (data={keyword:''})=>{
    return request.post(`/pool/device/page`,data)
}

/**
 * 根据id查询基础项信息
 */
export const GetById = ( id )=>{
    return request.post(`/pool/device/get/${id}`)
}

/**
 * 保存基础项
 */
export const SaveData = ( data )=>{
    return request.post(`/pool/device/save`,data)
}

/**
 * 更新基础项信息
 */
export const UpdateData = ( data )=>{
    return request.post(`/pool/device/update`,data)
}


/**
 * 根据id删除基础项信息
 */
export const DelById = ( id )=>{
    return request.post(`/pool/device/delete/${id}`)
}




